package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.Teacher;
import com.xinhua.repository.TeacherRep;

@Component
public class TeacherService {
	@Autowired
	private TeacherRep teacherRep;
	
	public List<Teacher> getTeacher(){
		return (List<Teacher>) teacherRep.findAll();
	}
}
